﻿@model vngoodlife.MenuList

@{
    Layout = null;
}

@using (Html.BeginForm("MenuListEditSubmit", "MenuList", FormMethod.Post, new { enctype = "multipart/form-data" }))
   {
    @Html.AntiForgeryToken(vngoodlife.Util.AntiKey.EditSalt)
    @Html.ValidationSummary(true)
<div>
    <div class="editor_left2">
        @*<label>@Html.LabelFor(model => model.MenuListID):</label><br />
               @Html.TextBox("menuListID", Model.MenuListID, new { Readonly = "readonly" })*@

               <label>@Html.LabelFor(model => model.MenuListID):</label><br />
               @Html.TextBoxFor(model => model.MenuListID, new { Readonly = "readonly" })
    </div>
    <div class="editor_middle2">
        <label>@Html.LabelFor(model => model.MenuName):</label><br />
               @Html.TextBoxFor(model => model.MenuName, new { Maxlength = "50" })
    </div>
    <div class="editor_middle2B">
        <label>@Html.LabelFor(model => model.MenuTypeID):</label><br />
               @Html.DropDownListFor(model => model.MenuTypeID, ViewBag.MenuTypeListEdit as SelectList)
    </div>
    <div class="editor_right2">
        <label>@Html.LabelFor(model => model.Superior):</label><br />
               @Html.DropDownListFor(model => model.Superior, ViewBag.DDLMenuList as SelectList)
    </div>

</div>
<br class="clear" />
<br />
<div>
    <div class="editor_left2">
        <label>@Html.LabelFor(model => model.ControllerName):</label><br />
               @Html.TextBoxFor(model => model.ControllerName, new { Maxlength = "100"})
    </div>
    <div class="editor_middle2">
        <label>@Html.LabelFor(model => model.ActionName):</label><br />
               @Html.TextBoxFor(model => model.ActionName, new { Maxlength = "100" })
    </div>
    <div class="editor_middle2B">
        <label>@Html.LabelFor(model => model.MenuBackEnd):</label><br />
               @Html.EditorFor(model => model.MenuBackEnd)
    </div>
    <div class="editor_right2">
        <label>@Html.LabelFor(model => model.MenuVisible):</label><br />
               @Html.EditorFor(model => model.MenuVisible)
    </div>

</div>
<br class="clear" />
<br />
<div>
    <div class="editor_left2">
        <label>@Html.LabelFor(model => model.Image):</label><br />
        <input name="uploadFile" id="uploadFile" type="file" />
    </div>
    <div class="editor_middle2">
        <label>@Html.LabelFor(model => model.Location):</label><br />
               @Html.TextBoxFor(model => model.Location)
    </div>
    <div class="editor_middle2B">
        <label>@Html.LabelFor(model => model.MenuSeoUrl):</label><br />
        <div style="margin-top: 4px">@Model.MenuSeoUrl</div>
    </div>
    <div class="editor_right2">
        <label>@Html.LabelFor(model => model.Image):</label><br />
        <div>@Model.Image</div>
    </div>
</div>
<br class="clear" />
<br />
    
     <div>
        <div class="editor_left2">
            <label>@Html.LabelFor(model => model.MenuTitle):</label><br />
            @Html.TextBoxFor(model => model.MenuTitle, new { Maxlength = "100" })
        </div>

        <div class="editor_middle2">
            <label>@Html.LabelFor(model => model.MenuDescription):</label><br />
                    @Html.TextBoxFor(model => model.MenuDescription, new { Maxlength = "500" })
        </div>
    </div><br class="clear"/><br />    
    
    
    @Html.Hidden("oldImage", Model.Image)  
      
<p>
    <input type="submit" value="Lưu Menu" style="margin: 0 2px"/>
</p>
}
